// JavaScript Document

// JavaScript Document
    
function connect_db() // send an ajax request to the server URL containing the PHP
{
        
        console.log("Function connect entered...");
        var locval;
        var timestamp;
        var feelingval;
        var commentval;
		
        $.ajax(
        {
                type:'GET',
                data:{ 
                'timestamp': timestamp,
                'locval':locval,
                'feelingval':feelingval,
                'commentval':commentval
                },
                url:"get.php",
                
                success: function(data){
                        //console.log(data);
                        console.log("AJAX call made...");
                },
                error: function(data){
                        console.log(data);
                        alert('There was an error in adding your comment');
                }
        });
		
		
}